require.config({
  baseUrl: './',
  paths: {
    requireLib: 'vendor/require',
    zepto: 'vendor/zepto',
    underscore: 'vendor/underscore',
    sui: 'vendor/sm',
    smExtend: 'vendor/sm-extend',
    utils: 'utils',
    handlebars: 'vendor/handlebars.amd',
    JST: 'template/JST',
    text: 'vendor/text',
    wx: 'http://res.wx.qq.com/open/js/jweixin-1.0.0',
    amountControl: 'component/amount-control',
    countDown: 'component/countdown',
    labelSelect: 'component/label-select',
    submitForm: 'component/submitform',
    cityPicker: 'component/city-picker',
    chart: 'component/chart.min'
  },
  shim: {
    'zepto': { exports: '$' },
    'sui': { deps: ['zepto'] },
    'smExtend': { deps: ['zepto','sui'] },
    'cityPicker': { deps: ['zepto', 'sui'] },
    'amountControl': {deps: ['zepto']},
    'countDown': {deps: ['zepto']},
    'labelSelect': {deps: ['zepto']},
    'submitForm': {deps: ['zepto']},
    'chart': {deps: ['zepto']}
  },
  deps: ['zepto', 'sui'],
  callback: function($) {
    $.init()
  }
})